﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Masterpage/TrangKhach.Master" AutoEventWireup="true"
    CodeBehind="DangKiCho.aspx.cs" Inherits="DT5_Anh09110006_Hung09110044_Vu09110157.DangKiCho" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>Đăng Kí Chỗ</title>
    <link rel="Stylesheet" href="../Styles/jquery-ui.css" type="text/css" />
    <script type="text/javascript" src="../Scripts/jquery-1.8.3.js"></script>
    <script type="text/javascript" src="../Scripts/jquery-ui.js"></script>
    <script type="text/javascript">
        $(function () {
            $("#datepicker").datepicker({
                showOn: "button",
                buttonImage: "../Image/date_16x16.gif",
                buttonImageOnly: true,
                changeMonth: true,
                changeYear: true
            });
        });
    </script>
    <style type="text/css">
        #datepicker
        {
            width: 200px;
        }
        .btnDangKi
        {
            -moz-border-radius: 5px;
            -webkit-border-radius: 5px;
            padding-left: 20px;
            font-size: 15px;
            background: url("../Image/registration_16x16.gif");
            background-position: left;
            background-repeat: no-repeat;
            background-color: White;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Label ID="Label1" runat="server" Text="Mã Lớp Đăng Kí:" Font-Bold="True"></asp:Label>
    <asp:DropDownList ID="drpMaLop" runat="server" Width="205px">
    </asp:DropDownList>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="drpMaLop"
        ErrorMessage="Chưa chọn lớp" Font-Italic="True" ForeColor="Red" ValidationGroup="DangKiCho"
        InitialValue="-1"></asp:RequiredFieldValidator>
    <br />
    <br />
    <asp:Label ID="Label2" runat="server" Text="Họ và Tên:" Font-Bold="True"></asp:Label>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:TextBox ID="txtHoTen" runat="server" Width="200px" ValidationGroup="DangKiCho"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtHoTen"
        ErrorMessage="Chưa nhập họ tên" Font-Italic="True" ForeColor="Red" ValidationGroup="DangKiCho"></asp:RequiredFieldValidator>
    <br />
    <br />
    <asp:Label ID="Label3" runat="server" Text="Ngày Sinh: " Font-Bold="True"></asp:Label>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
    <input id="datepicker" type="text" name="txtNgaySinh" readonly="readonly" /><br />
    <br />
    <asp:Label ID="Label4" runat="server" Text="Giới Tính:" Font-Bold="True"></asp:Label>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:DropDownList ID="drpGioiTinh" runat="server" Width="205px">
        <asp:ListItem>Nam</asp:ListItem>
        <asp:ListItem>Nữ</asp:ListItem>
    </asp:DropDownList>
    <br />
    <br />
    <asp:Label ID="Label5" runat="server" Text="Địa Chỉ:" Font-Bold="True"></asp:Label>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:TextBox ID="txtDiaChi" runat="server" Width="200px"></asp:TextBox>
    <br />
    <br />
    <asp:Label ID="Label6" runat="server" Text="Điện Thoại:" Font-Bold="True"></asp:Label>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:TextBox ID="txtDienThoai" runat="server"
        Width="200px"></asp:TextBox>
    <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="txtDienThoai"
        ErrorMessage="Số điện thoại ko phù hợp" Font-Italic="True" ForeColor="Red" ValidationExpression="0(\d{9})(\d{1})?"
        ValidationGroup="DangKiCho"></asp:RegularExpressionValidator>
    <br />
    <br />
    <asp:Label ID="Label7" runat="server" Text="CMND:" Font-Bold="True"></asp:Label>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:TextBox ID="txtCMND" runat="server" Width="200px"></asp:TextBox>
    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtCMND"
        ErrorMessage="CMND không phù hợp" Font-Italic="True" ForeColor="Red" ValidationExpression="\d{9}"
        ValidationGroup="DangKiCho"></asp:RegularExpressionValidator>
    <br />
    <br />
    <asp:Label ID="Label8" runat="server" Text="Email:" Font-Bold="True"></asp:Label>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:TextBox
        ID="txtEmail" runat="server" Width="200px"></asp:TextBox>
    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEmail"
        ErrorMessage="Email không phù hợp" Font-Italic="True" ForeColor="Red" ValidationGroup="DangKiCho"
        Display="Dynamic" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
    <br />
    <br />
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:Button ID="txtDangKi" runat="server" Text="Đăng Kí" Width="120px" Font-Bold="True"
        OnClick="txtDangKi_Click" ValidationGroup="DangKiCho" CssClass="btnDangKi" />
    <br />
</asp:Content>
